x11: Be more careful with NVIDIA workaround
authorBenjamin Otte <otte@redhat.com>
Fri, 21 May 2021 23:43:31 +0000 (01:43 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 21 May 2021 23:43:31 +0000 (01:43 +0200)
commit5af6c37f8c407ea1e7c12956b1bab21758fb1f22
tree2cd393b1338c3810a17eb8cd179f59ecedba3593
parent430be6f2a96b17892261a1dcd9a12be0a85b6d10
x11: Be more careful with NVIDIA workaround

Check that we are indeed running inside an Xorg server before enabling
the workaround.

XWayland or other nested X servers deadlock when that workaround is
applied.
gdk/x11/gdkglcontext-glx.c